<?php
	/**
	 * CreateTime: 2022/6/10 14:32
	 */

	namespace App\ServiceChecker\CreditProject;

	use App\ServiceChecker\BasicServiceChecker;
	use App\Models\modelCreditProjectManage;

	/* developer	: Breezeer
	 * date			: 2022/6/11
	 * description	: verify current credit project is valid
	 *
	 *
	 *
	 *
	 *
	 *
	 *
	 */
	class CreditProjectLegitimacy extends BasicServiceChecker
	{
		public function __construct()
		{
			$this->m_cHelper	= app()->gcHelper	;
		}

		/* 查询信用项目是否有效
		 *
		 */
		public function verifyCreditProjectIsValid($credit_project_id/* 信用项目id */)
		{
			$ce	= ((new modelCreditProjectManage())->verifyCreditProjectIdExist($credit_project_id);if($ce->status===false)
			{
				return $this->m_cHelper->gfApiEchoExHttpException("$credit_project_id".$ce->message."CreditProjectLegitimacy::verifyCreditProjectIsValid");
			}
		 }
	}